package com.bdqn.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.common.utils.PageUtils;
import com.bdqn.gulimall.product.entity.SpuInfoEntity;
import com.bdqn.gulimall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author cxk&xp&fg
 * @email 200224242@qq.com
 * @date 2022-01-22 14:51:08
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存所有数据
     * @param vo
     */
    void saveSpuInfo(SpuSaveVo vo);

    /**
     * //1、保存spu基本信息 pms_spu_info
     * @param infoEntity
     */
    void saveBaseSpuInfo(SpuInfoEntity infoEntity);

    /**
     * 商品上架
     * @param spuId
     */
    void up(Long spuId);

    PageUtils queryPageByCondition(Map<String, Object> params);
}

